<?php

namespace app\index\controller;

use app\common\controller\Frontend;

class Zhaily extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';


    public function _initialize()
    {

    }	
    public function index()
    {
        return $this->view->fetch();
    }
    //游戏开始界面
    public function start() 
    {
        return $this->view->fetch();
    }
    //排行榜
    public function paihang() {

        $paih = new \app\index\model\Paih;
        $list = $paih::limit(20)->select();

        $this->view->assign('list',$list);
        return $this->view->fetch();
    }
}
